package com.zz.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zz.dao.TypesDao;
import com.zz.entity.Types;
import com.zz.service.TypesService;

@Service
public class TypesServiceImpl implements TypesService {

        @Autowired
        private TypesDao tdao;
      //查询所有
		@Override
		public List<Types> Typesquery() {
			return tdao.Typesquery();
		}
		//删除
		@Override
		public void Typesdel(int id) {
             tdao.Typesdel(id);			
		}
		//修改
		@Override
		public void typesupdate(Types types) {
                tdao.typesupdate(types);		
		}
		//查单
		@Override
		public Types TypesqueryById(int id) {
			return tdao.TypesqueryById( id);
		}
}
